﻿using System;
using SharpSqlAnalyzer.nodes;
using SharpSqlAnalyzer.nodes.mssql;

namespace SharpSqlAnalyzer.stmt.mssql
{
	// Token: 0x0200016C RID: 364
	public class TMssqlDeallocate : TCustomSqlStatement
	{
		// Token: 0x06000C99 RID: 3225 RVA: 0x00307A9E File Offset: 0x00305C9E
		public TMssqlDeallocate(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstmssqldeallocate;
		}

		// Token: 0x06000C9A RID: 3226 RVA: 0x00307AB2 File Offset: 0x00305CB2
		internal override void buildsql()
		{
		}

		// Token: 0x06000C9B RID: 3227 RVA: 0x00307AB4 File Offset: 0x00305CB4
		internal override void clear()
		{
		}

		// Token: 0x06000C9C RID: 3228 RVA: 0x00307AB6 File Offset: 0x00305CB6
		internal override string getasprettytext()
		{
			return "";
		}

		// Token: 0x06000C9D RID: 3229 RVA: 0x00307ABD File Offset: 0x00305CBD
		internal virtual void iterate(TVisitorAbs pvisitor)
		{
		}

		// Token: 0x06000C9E RID: 3230 RVA: 0x00307AC0 File Offset: 0x00305CC0
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			TMssqlDeallocateSqlNode tmssqlDeallocateSqlNode = (TMssqlDeallocateSqlNode)this.rootNode;
			base.doParseStatement(psql);
			this.cursorName = tmssqlDeallocateSqlNode.CursorName;
			this.global = tmssqlDeallocateSqlNode.Global;
			return 0;
		}

		// Token: 0x06000C9F RID: 3231 RVA: 0x00307B04 File Offset: 0x00305D04
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000CA0 RID: 3232 RVA: 0x00307B14 File Offset: 0x00305D14
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x17000254 RID: 596
		// (get) Token: 0x06000CA1 RID: 3233 RVA: 0x00307B24 File Offset: 0x00305D24
		// (set) Token: 0x06000CA2 RID: 3234 RVA: 0x00307B2C File Offset: 0x00305D2C
		public virtual TObjectName CursorName
		{
			get
			{
				return this.cursorName;
			}
			set
			{
				this.cursorName = value;
			}
		}

		// Token: 0x17000255 RID: 597
		// (get) Token: 0x06000CA3 RID: 3235 RVA: 0x00307B35 File Offset: 0x00305D35
		// (set) Token: 0x06000CA4 RID: 3236 RVA: 0x00307B3D File Offset: 0x00305D3D
		public virtual bool Global
		{
			get
			{
				return this.global;
			}
			set
			{
				this.global = value;
			}
		}

		// Token: 0x040012EC RID: 4844
		private TObjectName cursorName;

		// Token: 0x040012ED RID: 4845
		private bool global;
	}
}
